package com.eastday.biz.impl;

import java.io.IOException;

import org.jdom.JDOMException;

import com.eastday.biz.PageNoUpdateBiz;
import com.eastday.dao.UpdateNewsPageNoDao;
import com.eastday.util.BeanFactory;
import com.eastday.util.ParseConfigFactory;

/**
 * 
 * @author dingxs
 * 更新页码业务层
 */
public class PageNoUpdateBizImpl extends CommonService implements PageNoUpdateBiz {
	
	public PageNoUpdateBizImpl(){
		super();
		try {
			ParseConfigFactory.constructUrlConfig();
		} catch (JDOMException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	public void updatePageNo() {
		// TODO Auto-generated method stub
		UpdateNewsPageNoDao updateNewsPageNoDao = (UpdateNewsPageNoDao)BeanFactory.getBean("UpdateNewsPageNoOracleDao");
		updateNewsPageNoDao.updateNewsPageNo();
	}

}
